import { api } from './request'

const requestApi = {
  queryIsExistContainerNo: `/order/queryIsExistContainerNo`, // 业务单-校验箱号是否存在
  auditOrderInfo: `/order/auditOrderInfo`, // 业务单审核
  queryShipOrderList: `/order/queryShipOrderList`, // 订单列表查询
  finishShipOrder: `/order/finishShipOrder`, // 订单列表-结束订单
  getShipOrderById: `/order/getShipOrderById`, // 订单详情-订单信息
  editShipOrder: `/order/editShipOrder`, // 订单详情-订单信息修改
  queryShipOrderCostList: `/order/queryShipOrderCostList`, // 订单详情-费用信息
  addBillCost: `/order/addBillCost`, // 订单详情-费用信息新增
  queryShipOrderTrackList: `/order/queryShipOrderTrackList`, // 订单详情-跟踪信息
  addShipOrderTrack: `/order/addShipOrderTrack`, // 订单详情-跟踪信息新增
  ignoreShipOrderTrack: `/order/ignoreShipOrderTrack`, // 订单详情-跟踪信息 无跟踪信息
  dispatchShipOrder: `/order/dispatchShipOrder`, // 订单列表-派单
  queryReleaseContainerList: `/order/queryReleaseContainerList`, // 放箱管理-列表
  getReleaseContainerDetail: `/order/getReleaseContainerDetail`, // 放箱管理-详情
  releaseContainer: `/order/releaseContainer`, // 放箱管理-放箱

  queryShipContainerList: `/order/queryShipContainerList`, // 配船卸船查询
  queryVoyageContainerList: `/order/queryVoyageContainerList`, // 港口在船集装箱查询
  loadContainer: `/order/loadContainer`, // 装船
  unloadContainer: `/order/unloadContainer`, // 卸船
  queryShipOrderListForAdvanceLoad: `/order/queryShipOrderListForAdvanceLoad`, // 装配船-订单列表查询
  advanceLoadContainerFromOrder: `/order/advanceLoadContainerFromOrder`, // 预装-订单来源
  queryContainerFlowListForAdvanceLoad: `/order/queryContainerFlowListForAdvanceLoad`, // 装卸船-集装箱列表查询
  advanceLoadContainerFromContainerCenter: `/order/advanceLoadContainerFromContainerCenter`, // 预装-箱管中心来源
  cancelAdvanceLoadContainer: `/order/cancelAdvanceLoadContainer`, // 删除预装
  queryVoyageContainerRecordList: `/order/queryVoyageContainerRecordList`, // 装卸船记录查询

  queryOprUserListContainer: `/user/queryOprUserListContainer`, // 查询集装箱操作管理列表

  getCurrentOrderQuantity: `/order/getCurrentOrderQuantity`, // 工作台-当前订单箱量
  getOrderQuantityRanking: `/order/getOrderQuantityRanking`, // 工作台-箱量排行
  getHistoryOrderQuantity: `/order/getHistoryOrderQuantity`, // 工作台-历史箱量
  queryGoodsData: '/basicData/queryGoodsData', // 查询货名字典
  updateCostRecordStatus: '/order/updateCostRecordStatus', // 订单详情-修改费用是否录入完成
  editBillCost: '/order/editBillCost', // 订单详情-费用信息修改
  queryHistoryCostList: '/order/queryHistoryCostList', // 订单详情-费用历史信息
  queryCostSubTotal: '/order/queryCostSubTotal', // 订单详情-费用小计
  batchAddBillCost: '/order/batchAddBillCost', // 订单列表-费用信息批量新增

  //v1.2.0
  queryDailyTrackReportList: '/order/queryDailyTrackReportList', // 每日跟踪报表-列表
  queryBenchMessageList: '/order/queryBenchMessageList', // 工作台-消息
  readMessageInfo: '/truck/readMessageInfo', // 消息已读
  queryIsExistContainerNoByParam: '/order/queryIsExistContainerNoByParam', // 业务单-校验箱号是否存在
  // 改单
  queryOrderInfoModifyList: '/order/queryOrderInfoModifyList', // 改单审核-列表
  auditOrderInfoModify: '/order/auditOrderInfoModify', // 改单审核-审核
  getOrderInfoModifyById: '/order/getOrderInfoModifyById', // 改单审核-详情
  // 1.2 限价管理
  queryPriceLimitList: '/order/queryPriceLimitList',
  addPriceLimit: '/order/addPriceLimit',
  editPriceLimit: '/order/editPriceLimit'

}
export default requestApi

export const queryIsExistContainerNo = (data) => api(requestApi.queryIsExistContainerNo, data)
export const auditOrderInfo = (data) => api(requestApi.auditOrderInfo, data)
export const queryShipOrderList = (data) => api(requestApi.queryShipOrderList, data)
export const finishShipOrder = (data) => api(requestApi.finishShipOrder, data)
export const getShipOrderById = (data) => api(requestApi.getShipOrderById, data)
export const editShipOrder = (data) => api(requestApi.editShipOrder, data)
export const queryShipOrderCostList = (data) => api(requestApi.queryShipOrderCostList, data)
export const addBillCost = (data) => api(requestApi.addBillCost, data)
export const queryShipOrderTrackList = (data) => api(requestApi.queryShipOrderTrackList, data)
export const addShipOrderTrack = (data) => api(requestApi.addShipOrderTrack, data)
export const ignoreShipOrderTrack = (data) => api(requestApi.ignoreShipOrderTrack, data)
export const dispatchShipOrder = (data) => api(requestApi.dispatchShipOrder, data)
export const queryReleaseContainerList = (data) => api(requestApi.queryReleaseContainerList, data)
export const getReleaseContainerDetail = (data) => api(requestApi.getReleaseContainerDetail, data)
export const releaseContainer = (data) => api(requestApi.releaseContainer, data)

export const queryShipContainerList = (data) => api(requestApi.queryShipContainerList, data)
export const queryVoyageContainerList = (data) => api(requestApi.queryVoyageContainerList, data)
export const loadContainer = (data) => api(requestApi.loadContainer, data)
export const cancelAdvanceLoadContainer = (data) => api(requestApi.cancelAdvanceLoadContainer, data)
export const unloadContainer = (data) => api(requestApi.unloadContainer, data)
export const queryShipOrderListForAdvanceLoad = (data) => api(requestApi.queryShipOrderListForAdvanceLoad, data)
export const advanceLoadContainerFromOrder = (data) => api(requestApi.advanceLoadContainerFromOrder, data)
export const queryContainerFlowListForAdvanceLoad = (data) => api(requestApi.queryContainerFlowListForAdvanceLoad, data)
export const advanceLoadContainerFromContainerCenter = (data) => api(requestApi.advanceLoadContainerFromContainerCenter, data)
export const queryVoyageContainerRecordList = (data) => api(requestApi.queryVoyageContainerRecordList, data)

export const queryOprUserListContainer = (data) => api(requestApi.queryOprUserListContainer, data)

export const getCurrentOrderQuantity = (data) => api(requestApi.getCurrentOrderQuantity, data)
export const getOrderQuantityRanking = (data) => api(requestApi.getOrderQuantityRanking, data)
export const getHistoryOrderQuantity = (data) => api(requestApi.getHistoryOrderQuantity, data)
// 货名字典
export const queryGoodsData = (data) => api(requestApi.queryGoodsData, data)

export const updateCostRecordStatus = (data) => api(requestApi.updateCostRecordStatus, data)
export const editBillCost = (data) => api(requestApi.editBillCost, data)
export const queryHistoryCostList = (data) => api(requestApi.queryHistoryCostList, data)
export const queryCostSubTotal = (data) => api(requestApi.queryCostSubTotal, data)
// v1.1.5
export const batchAddBillCost = (data) => api(requestApi.batchAddBillCost, data)
// v1.2.0
export const queryDailyTrackReportList = (data) => api(requestApi.queryDailyTrackReportList, data)
export const queryBenchMessageList = (data) => api(requestApi.queryBenchMessageList, data)
export const readMessageInfo = (data) => api(requestApi.readMessageInfo, data)
// 改单
export const queryOrderInfoModifyList = (data) => api(requestApi.queryOrderInfoModifyList, data)
export const auditOrderInfoModify = (data) => api(requestApi.auditOrderInfoModify, data)
export const getOrderInfoModifyById = (data) => api(requestApi.getOrderInfoModifyById, data)


export const queryPriceLimitList = (data) => api(requestApi.queryPriceLimitList, data)
export const addPriceLimit = (data) => api(requestApi.addPriceLimit, data)
export const editPriceLimit = (data) => api(requestApi.editPriceLimit, data)
export const queryIsExistContainerNoByParam = (data) => api(requestApi.queryIsExistContainerNoByParam, data)
